/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "项目NPQR明细",TableName = "Ls_pro_npqr")]
    public partial class Ls_pro_npqr:BaseEntity
    {
        /// <summary>
       ///
       /// </summary>
       [Key]
       [Display(Name ="ls_pro_npqr_id")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid ls_pro_npqr_id { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ls_pro_npqr_head_id")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid ls_pro_npqr_head_id { get; set; }

       /// <summary>
       ///物料大类
       /// </summary>
       [Display(Name ="物料大类")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string wudl { get; set; }

       /// <summary>
       ///事业部
       /// </summary>
       [Display(Name ="事业部")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string syb { get; set; }

       /// <summary>
       ///类型
       /// </summary>
       [Display(Name ="类型")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string ls_type { get; set; }

       /// <summary>
       ///BOM号
       /// </summary>
       [Display(Name ="BOM号")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string bom_name { get; set; }

       /// <summary>
       ///用量
       /// </summary>
       [Display(Name ="用量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? yon_unit { get; set; }

       /// <summary>
       ///供应商料号
       /// </summary>
       [Display(Name ="供应商料号")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string mara_for_sup { get; set; }

       /// <summary>
       ///客户料号
       /// </summary>
       [Display(Name ="客户料号")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string mara_for_cust { get; set; }

       /// <summary>
       ///Material classification
       /// </summary>
       [Display(Name ="Material classification")]
       [MaxLength(10)]
       [Column(TypeName="varchar(10)")]
       [Editable(true)]
       public string matclass { get; set; }

       /// <summary>
       ///立讯料号
       /// </summary>
       [Display(Name ="立讯料号")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string matnr { get; set; }

       /// <summary>
       ///描述
       /// </summary>
       [Display(Name ="描述")]
       [MaxLength(500)]
       [Column(TypeName="varchar(500)")]
       [Editable(true)]
       public string matx { get; set; }

       /// <summary>
       ///原厂图纸型号
       /// </summary>
       [Display(Name ="原厂图纸型号")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string ycpapar { get; set; }

       /// <summary>
       ///单位
       /// </summary>
       [Display(Name ="单位")]
       [MaxLength(10)]
       [Column(TypeName="varchar(10)")]
       [Editable(true)]
       public string dw { get; set; }

       /// <summary>
       ///原厂
       /// </summary>
       [Display(Name ="原厂")]
       [MaxLength(10)]
       [Column(TypeName="varchar(10)")]
       [Editable(true)]
       public string original { get; set; }

       /// <summary>
       ///最少采购数量(MOQ)
       /// </summary>
       [Display(Name ="最少采购数量(MOQ)")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? moq { get; set; }

       /// <summary>
       ///采购单位批量(SPQ)
       /// </summary>
       [Display(Name ="采购单位批量(SPQ)")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? spq { get; set; }

       /// <summary>
       ///采购安全期(L/T)
       /// </summary>
       [Display(Name ="采购安全期(L/T)")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string ltw { get; set; }

       /// <summary>
       ///产地
       /// </summary>
       [Display(Name ="产地")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string candi { get; set; }

       /// <summary>
       ///包装尺寸 长*宽*高
       /// </summary>
       [Display(Name ="包装尺寸 长*宽*高")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string bzcc { get; set; }

       /// <summary>
       ///供应商代码
       /// </summary>
       [Display(Name ="供应商代码")]
       [MaxLength(10)]
       [Column(TypeName="varchar(10)")]
       [Editable(true)]
       public string gycode { get; set; }

       /// <summary>
       ///定点供应商
       /// </summary>
       [Display(Name ="定点供应商")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string gyname { get; set; }

       /// <summary>
       ///单价
       /// </summary>
       [Display(Name ="单价")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? price { get; set; }

       /// <summary>
       ///币别
       /// </summary>
       [Display(Name ="币别")]
       [MaxLength(10)]
       [Column(TypeName="varchar(10)")]
       [Editable(true)]
       public string btype { get; set; }

       /// <summary>
       ///汇率
       /// </summary>
       [Display(Name ="汇率")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? hcate { get; set; }

       /// <summary>
       ///未税单价
       /// </summary>
       [Display(Name ="未税单价")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? ws_price { get; set; }

       /// <summary>
       ///物流条件
       /// </summary>
       [Display(Name ="物流条件")]
       [MaxLength(10)]
       [Column(TypeName="varchar(10)")]
       [Editable(true)]
       public string wlcondition { get; set; }

       /// <summary>
       ///存储条件
       /// </summary>
       [Display(Name ="存储条件")]
       [MaxLength(10)]
       [Column(TypeName="varchar(10)")]
       [Editable(true)]
       public string storecondition { get; set; }

       /// <summary>
       ///配比
       /// </summary>
       [Display(Name ="配比")]
       [MaxLength(10)]
       [Column(TypeName="varchar(10)")]
       [Editable(true)]
       public string pbi { get; set; }

       /// <summary>
       ///采购担当
       /// </summary>
       [Display(Name ="采购担当")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string cgdd { get; set; }

       /// <summary>
       ///承认
       /// </summary>
       [Display(Name ="承认")]
       [MaxLength(10)]
       [Column(TypeName="varchar(10)")]
       [Editable(true)]
       public string acknow { get; set; }

       
    }
}